Updated and Validated
[betaflight.git] / docs / development / Building in Fedora.md
blob916e91c5e0028ba2b8ab131b2efc3b76959f1d6c
1 # Building in Fedora 35
3     $ sudo dnf check-update
4     $ sudo dnf install git clang libblocksruntime-devel
5     $ sudo dnf group install "C Development Tools and Libraries"
6     $ git clone https://github.com/betaflight/betaflight.git
7     $ cd betaflight
8     $ make arm_sdk_install
9     $ make TARGET=MATEKF411
11 ### Building Configurator in Fedora 35
13     $ sudo dnf check-update
14     $ sudo dnf install libatomic rpm-build dpkg
15     $ sudo dnf module list nodejs
16     $ sudo dnf module install nodejs:14/default
17     $ sudo npm install -g gulp-cli yarn
18     $ yarn install
19     $ yarn gulp debug
21 Note: Please check this link for the required Node version: https://github.com/betaflight/betaflight-configurator#development
23 ### Serial permissions
25 Remove ModemManager.
26 Add yourself to the dialout group:
28     $ sudo dnf remove ModemManager
29     $ sudo usermod -aG dialout $(whoami)
31 Save and reboot after adding the following contents:
33     $ sudo nano /etc/udev/rules.d/45-stdfu-permissions.rules
35     # Notify ModemManager this device should be ignored
36     ACTION!="add|change|move", GOTO="mm_usb_device_blacklist_end"
37     SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end"
38     ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end"
39    
40     ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ENV{ID_MM_DEVICE_IGNORE}="1"
41    
42     LABEL="mm_usb_device_blacklist_end"
43    
44     #STM32 DFU Access
45     SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"